
local compress_recipes = {
	{source = 'default:cobble', sink = 'moreblocks:cobble_compressed'},
	{source = 'default:bronze_ingot', sink = 'default:bronzeblock'},
	{source = 'default:copper_ingot', sink = 'default:copperblock'},
	{source = 'default:gold_ingot', sink = 'default:goldblock'},
	{source = 'default:steel_ingot', sink = 'default:steelblock'},
	{source = 'default:tin_ingot', sink = 'default:tinblock'},
	{source = 'default:coal_lump', sink = 'default:coalblock'},
	{source = 'default:diamond', sink = 'default:diamondblock'},
	{source = 'default:mese_crystal', sink = 'default:mese'},
	{source = 'default:mese_fragment', sink = 'default:mese_crystal'},
	{source = 'default:obsidian_shard', sink = 'default:obsidian'},
	{source = 'default:clay_brick', sink = 'default:brick', amount=4},
	{source = 'default:clay_lump', sink = 'default:clay', amount=4},
	{source = 'basic_materials:brass_ingot', sink = 'basic_materials:brass_block'},
	{source = 'group:grass', sink = 'charcoals:biochar_raw',amount=3},
	{source = 'default:dry_shrub', sink = 'charcoals:biochar_raw',amount=3},
	{source = 'group:leaves', sink = 'charcoals:biochar_raw',amount=2},
	{source = 'technic:carbon_steel_ingot', sink = 'technic:carbon_steel_block'},
	{source = 'technic:stainless_steel_ingot', sink = 'technic:stainless_steel_block'},
	{source = 'technic:chromium_ingot', sink = 'technic:chromium_block'},
	{source = 'technic:lead_ingot', sink = 'technic:lead_block'},
	{source = 'technic_aluminum:aluminum_ingot', sink = 'technic_aluminum:aluminum_block'},
	{source = 'technic:zinc_ingot', sink = 'technic:zinc_block'},
	{source = 'farming:wheat', sink = 'farming:straw', amount=3},
	{source = 'farming:melon_slice', sink = 'farming:melon_8', amount=4},
	{source = 'farming:salt', sink = 'farming:salt_crystal'},
	{source = 'farming:hemp_block', sink = 'farming:hemp_fibre'},
	{source = 'ethereail:crystal_ingot', sink = 'ethereal:crystal_block'},
	{source = 'moreores:mithril_ingot', sink = 'moreores:mithril_block'},
	{source = 'moreores:silver_ingot', sink = 'moreores:silver_block'},
	{source = 'technic_aluminum:aluminum_ingot', sink = 'technic_aluminum:aluminum_block'},

	
}

if not minetest.get_modpath('compactor') then 

    for _,v in pairs(compress_recipes) do
        if (minetest.registered_items[v.sink] ~= nil) and (minetest.registered_items[v.source] ~= nil) then
            local amount = v.amount or 9
            technic_farming.register_compactor_recipe({input = {v.source.." "..amount}, output = v.sink})
        end

    end
end
